package com.uoss.applications.modules.usermgr.entities;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;


/**
 * The persistent class for the TS_USER database table.
 * 
 */
@Entity
@Table(name="TS_USER")
public class TsUser implements Serializable {
	private static final long serialVersionUID = 1L;
	private String userCode;
	private String agencyCode;
	private String auditId;
	private Date createdDate;
	private String logonId;
	private String logonPwd;
	private String securityAnswer;
	private String securityQuestion;
	private String status;
	private Date updatedDate;

    public TsUser() {
    }


	@Id
	@Column(name="USER_CODE", unique=true, nullable=false, length=32)
	public String getUserCode() {
		return this.userCode;
	}

	public void setUserCode(String userCode) {
		this.userCode = userCode;
	}


	@Column(name="AGENCY_CODE", length=16)
	public String getAgencyCode() {
		return this.agencyCode;
	}

	public void setAgencyCode(String agencyCode) {
		this.agencyCode = agencyCode;
	}


	@Column(name="AUDIT_ID", length=8)
	public String getAuditId() {
		return this.auditId;
	}

	public void setAuditId(String auditId) {
		this.auditId = auditId;
	}


    @Temporal( TemporalType.DATE)
	@Column(name="CREATED_DATE")
	public Date getCreatedDate() {
		return this.createdDate;
	}

	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}


	@Column(name="LOGON_ID", nullable=false, length=256)
	public String getLogonId() {
		return this.logonId;
	}

	public void setLogonId(String logonId) {
		this.logonId = logonId;
	}


	@Column(name="LOGON_PWD", nullable=false, length=64)
	public String getLogonPwd() {
		return this.logonPwd;
	}

	public void setLogonPwd(String logonPwd) {
		this.logonPwd = logonPwd;
	}


	@Column(name="SECURITY_ANSWER", length=256)
	public String getSecurityAnswer() {
		return this.securityAnswer;
	}

	public void setSecurityAnswer(String securityAnswer) {
		this.securityAnswer = securityAnswer;
	}


	@Column(name="SECURITY_QUESTION", length=8)
	public String getSecurityQuestion() {
		return this.securityQuestion;
	}

	public void setSecurityQuestion(String securityQuestion) {
		this.securityQuestion = securityQuestion;
	}


	@Column(length=1)
	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}


    @Temporal( TemporalType.DATE)
	@Column(name="UPDATED_DATE")
	public Date getUpdatedDate() {
		return this.updatedDate;
	}

	public void setUpdatedDate(Date updatedDate) {
		this.updatedDate = updatedDate;
	}

}